package com.example.smartagriculture.entity;

import java.io.Serializable;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * city 实体类
 * @author 张芸博
 * @since 2025-03-07
 */
@Data
@AllArgsConstructor
public class City implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Schema(name = "id", description = "主键")
    private Integer id;

    /**
     * 省市区名称
     */
    @Schema(name = "name", description = "省市区名称")
    private String name;

    /**
     * 上级ID
     */
    @Schema(name = "parentid", description = "上级ID")
    private String parentid;

    /**
     * 简称
     */
    @Schema(name = "shortname", description = "简称")
    private String shortname;

    /**
     * 级别:0,中国；1，省分；2，市；3，区、县
     */
    @Schema(name = "leveltype", description = "级别:0,中国；1，省分；2，市；3，区、县")
    private Integer leveltype;

    /**
     * 城市代码
     */
    @Schema(name = "citycode", description = "城市代码")
    private String citycode;

    /**
     * 邮编
     */
    @Schema(name = "zipcode", description = "邮编")
    private String zipcode;

    /**
     * 经度
     */
    @Schema(name = "lng", description = "经度")
    private String lng;

    /**
     * 纬度
     */
    @Schema(name = "lat", description = "纬度")
    private String lat;

    /**
     * 拼音
     */
    @Schema(name = "pinyin", description = "拼音")
    private String pinyin;

    @Schema(name = "status", description = "")
    private String status;


}
